import { axios } from '../api/server';
<template>
        <div>
            <p v-for="item in data" :key="item.name">{{item}}</p>
        </div>
</template>
    
<script setup lang='ts'>
import { axios } from '../api/server'
let list =  await axios('../api/data.json');
console.log(list);
</script>
    
<style>
    
</style>